fix UI bugs.