added alerts to buttons