Added page transitions and singleton patterns.