Added hidden input of event index