added role, main , data-, tag order, beautified