added DIO switches
pt2
on click listeners and such