set main controller on rootscope