Refactored Blog pagination