layout and change root path