moved models to core; structured home.html template