set up permissions for each page