using template now instead of having view logic wrapped into model