create base ui and controller