only close modal when close is clicked