Refactored role&user manager&store.