Added open function for search results