finished search function with pluralize, search working