templates are added for views instead of ugly embedded html