template change-to popup