Move showAlert to service