Convert error dialog to DialogFragment