Fixed delete method so it correctly redirects following deletion