attach nav events to document since theyre being swapped with js