Added function to alter tag group and permissions on hTags.php