updating active classes