tidy up editor