Fix title in HTML pages

Update title so that it makes use of the event parameter.