begining of edit function
edit works, but needs validation
clean up and notes