use ccb to compose the mainview