fixing issue with  warn, adding rootscope event dispatch