put editing flag on rootScope