check access and permision on pages