Introduce showAlert method