Swipe fix: fix the flicker problem
pagefooter fix: set "active" class to current page