Refactor controllers to remove template name from res.view