added showAlert