fixing a few gui glitches.