save changes and refresh model