issue with topnav after rendering solved