updating active page