close modal after action