adding alert feature