created viewing and editing functions for restaurants