when model is closed or sent, val is reset