added views and templating