fix gui for "Edit" button