Added popular page and fixed query for popular posts