logic to transition statue pages based on current location