added toggle button for switching pen/finger mode