close profile on click on edit or delete button