Fixed the button control enable/disable functionality