repaired bug causing error when on page root, added support for kaminari pagination