Split out main sections of the data and added a check on the get_device call so it doesnt fire off an API call everytime it is called