Add delete functionality to delete button