added resource-type to dom element