Add a confirmation dialog when changing trains

Ticket:	#6300