updating root path and corresponding links