Making Synthesis gui interact with the api