Implemented task editing functionality