allow renaming of pages for certain groups only

also adds a tpl function for easier integration