Removed deprecated use of AlertDialog
Fixed alert dialog details closure