Change trigger for alert on modal