add progressbar in TrainActivity