search function is now functioning based on name
merged problem with search button