started plugging in the API to the GUI