improved desable state of the editor 2