Adding autocomplete window to close modal check.