Now gray out the Train and Predict buttons in more situations where training and prediction are not possible.