functioning search on home page