fix a lot of the remaining UI glitches