Added a function to link pages and put restricted pages in a another
folder