updating active menu links and socialnetworks