created page pdf and optimize screen loading