changing the order of layer switch and files