front end events delete method redirecting wrong