move sync popup to template