fixing button enablement