Refactors lmvc's controller to integrate with rendering module.