View wrapper that handles page transitions