Moving page transitions to vars