Clicking on a button control no longer refreshes page

Fixes #181.