Define pageShowHandler before it is used

Change-Id: I37f03e85e3b44d6e7d3746fccc46d46564ed9bd8
Merge "Define pageShowHandler before it is used"