fix some minor bugs of ui