added search and connected to JSON file