add active state to window buttons