save the edited query