tidying up the editor