fixed ui bugs.