added switching for active route