added logic on homepage to make search request and present results