Cleaning up the Controller, templatefunc