fixed up some of the search functionality
minor style changes