created an alert to display results