fix issue with initial state of buttons