coded ui for displaying event