Added page preview functionality