Made disabled state and unlocking of the button working