Refactor gui config into its own struct