add edit update method
unfinished work in 0517