adding dom and events preso