in progress - sorting citations and populating edit pane