fixed semi-fouc for navigation

previously navigation would flash with everything open and then close
itself once the page loaded fully and javascript was run

this didn't look great and was at points confusing. this fixes it.