Provide button to switch between modes.
Merge pull request #107 from rogerhu/button_mode

Provide button to switch between modes.