Replacing AlertDialog with DialogFragment

```onCreateDialog()``` for an ```Activity``` is now deprecated.