fix "edit" button on pop-up