updating active link code