Adding back the element event registration