updated nav functionality