Fixed UI API according to singleton refactoring.