implemented logic for viewing hubs, added edit hubs view