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

How do you think about this approach?