correct output on location change by using transitions