adapt view to html