modified nav script