add router reference to route events and callbacks