refactor server_view:

1. add function for html render
2. code indention
3. split long lines