locomotive controller template