fixed bug with updating states for button in multiplication table