implement alert feature