adding the delete action with confirmation to the controller