Progress Bar turns red for indicating an error in compilation; Button gets deactivated when it's running