create loader and page class