refactored code to support next page event without error. TODO next - ensure the front page notification transits to idle state once the next page element has been selected