edit fuction works

this repopulates the form.