navigation menu code cleaned up. Menu state now persists properly across refresh/close events in browser.