Added nav open/close state tracking