add toggle mode and examples