switch toggle to html5-friendly button element
delegate event detection to handle nexted buttons