prettier addevents for id elements