added generate event button