refactored editor fields into modules.  fixed add code