move EditSources into its own file