Create UI when needed.