fixed bug 700 refactored UserRole maintenance