move html creation to the view
remove socket test artifact
move more html to the view