fix reneder widget

check type, if dict, dumps json. if not, keep as is