code cleaning for topnav