[client][server] Move dialog view to HTML from JavaScript

This is retry of #533