setting up editor