add data-role attributes to elements