add alert on button code