change alert to AlertDialog