delete button functionality
delete button functionality fix