added nav scroll function