implemented delete button