udpate sctive state of buttons