path mapping to dom