improve style for html views

Closes #124
use Socket.gethostname instead of hostname

Closes #123