clean up a lot of the editing mode