refactored so that ajax grabs from editable form inputs instead of non editable text