Added panorama page selection logic.