updated example for pinyin widget