Added toggle on/off to tk example