Creating the editor and layout