fixes a lot of GUI stuff