set up controllers and views