added app model, did some templating