renamed delete to destroy, added a special variable for enabling the delete route