make sure to set events even if elements already exist