change appendChild to insertBefore to shift color blocks