Adding code to rearrange accordion panels