Fixed ui bugs.