Adding page break and progress bar