Moved page rendering to application component