updated nav scroll code