Fixed save and cancel actions for editing.