New edit_event_link that breaks less things, added switchpage function