updated button states