fix topnav and remove old script structure