integrating views, models and templates