make displayrestaurants and redisplayrestaurants functions in ui