fixed setTheme() not returning self, and var issue in ui()