update html GUI

remove repetitive viewmodel function