minor bug fix in button associated windows