fixes #5 Fix button pressed state