Moved dialog related functions to dialogs.c
the resulting compilation failures).
role a little, added policy data table.