Added check to make sure we are on a search page