fixed some minor bugs in the GUI