Wrote a correct way of building the GUI. Man, this is so not well documented.