Changes the selected item in navigation when you scroll