Rm debug messages
Avoid calling show if editor is not visible