Making AlertDialog in Widget configuration reusable.