Add dom definition