cleanup modal call