Routing and controller initializing