add method for delete button