added delete page function
added precise and scalable permissions method