set the search page as the default home page for the application
deleted unnecessary code
re-factored Request/Response logic