Moved template logic into the views