implemented saving modifications to an existing item (#11)