Basic UI infrastructure.