combine events at front end