eliminating the global YApp in favor of a local reference to the global pageView