Enable/Disable button and Fix Code Analysis