update rootscope