add element for kiosk mode switch and hook up an event to it