Issue #7: add code to check isPressed property of button. But need to
find out how to refer to button from onclicklistener