fixed some bugs in the user interface