improve the index and detail page to display event