adjust easy_popup_get_popup function