implementing changing order of labels