fixing button enablement again