Proper attached to DOM implementation