added legacy browser support for page transitions