use the transition method after a successful load.

Note that the transition lock had to be duplicated to prevent
multiple simultaneous transitions. Also the pagebeforechange must
be triggered twice for backward compat. A new event will be introduced
to distinguish between the start of the whole change process and
the transition process