write the ui with a demo