update cached model before save data