added route to main#index for homepage and route to search#index