sharing DOM state