set the initial state of the train by onLoad