updated nav code