not submitting when no search is done