tweaked doc
refactored edit form