global edit turned off when sidebar clicked