Item state doesn't change in Hab panel

Hello Guys,

I have OH2 working great with classic UI, so started to play with Habpanel, I added some widgets to the demo habpanel, but when I click on the switch widget, it sends the http command to my server but it’s state does not change in the UI, whereas in classic UI it changes,
i.e when I press ON from the hab panel, after pressing it should change to Off, but it is not changing, when I refresh the page then only it shows the off icon.
Where am I making the mistake?