Adding search functions

That's a lot of ajax calls. I have hidden the search on small windows until I figure out what to do with it.