added add and edit sections for editCharacterization popup. Moves 2 rest calls into their own section