close modal in directive