button disable and enable bug fix