close modal when accept