I just found a solution for my active page problem