delete button behavior fix