pause the trajectory display when tab is switched.