prevent save if nothing has changed