add code example for ab widget