Changing order of the elements inside tabs