add popup closing after form submit