Added reset event to rootscope for resetting view mode on popup close