fix the redirection problem after deleting an event

fix the redirection problem after deleting an event, and some related gallery issues.