Added dialogs for editing roles list.
Some code mowed from Activity to the Fragments.