improved desable state of the editor