added the browser location condition if user not came from search page