Modified preferences and refactored public DialogFragments into own pack...

...age