fix offline state of widget
fix error state of widget