Create activate and deactivate hooks for router