how to create a popup card