added editing functionality and test