fix errors in setup of views, controllers, models