displaying event in alert