fix most problem in ui