what is a difference between onSave and onApply?