Fix up note reverting
fix to close editor popup globally across the app, not just from within the editor