fix edit/delete button bug