addressed jquery performance for the navbars