More DOM refresh friendly way of setting list attributes