breaking into views and templates