only make the trajectory view when necessary.