added functionality to save role