state view html working