Added number of max iterations. Hide retrain button if nothing modified on the retrain view controller.