Moved instantiation of controller to html page