fixed a bunch of gui stuff