Use AlertDialog instead of Toast in some cases