implement the basic structure of ui