fixed some user interface bugs