added the ability to disable the search form by clicking outside of the input field