popup_element method is defined