added scriptable API to page transitions