fixes for delete button