adding more events and update legend