updating search controller in rails and angular to handle new search & load.