GUI finally working. Still have some bugs.