fixed state widget, set id to be 'state_id'