added a redirect for the delete method