Moving logic outside of the template and into the view