added binding to view.init and removed from htmlBuilder
removed more unused code