Added a showAlert method