refactored some code into a service. added a master and detail view. did some null coalescing for location display in master view