[ui] adapt to html and develop model