refactored relations, attributes, and labels into individual api endpoints. updated view accordingly