Added a special support for the pagebeforechange event in order to temporarily
pause transitions or re-route them to different locations