Fix popup on edit pages