fixed UI bugs.