add alert on click