moved hide nav to before doc ready