populate the editor