Fixed errors with enabling and disabling the btn