set up controllers and routing