[front-end] make HtmlWidget reconfigurable