header is done for index and events