functioning delete button/method