updating show and root path