beautify page and restrict certain pages