Split app into separate models and views