Refactor displayAlertsAction to displayAlertAction