added PermissionClass to versioning
more progress on permissions dialog, minor changes