remove temp variable when modal hide