adjusting click and scroll behaviours for setting active anchor navigation item