adding structure to dom interactions