updated entity and location models relationship
locations controller and routes