added code for button states issue #15