added code to populate the editor for the course