add button cancel and save to editing mode