Implemented save and cancel