Switch execution of redering templates to MainController