Added UI initializer function