editor rework beginning
new cursors, closing window properly