Converted app to use routes and views