Custom pagination component implementation

Forgot to add the custom pagination component in the last pull request.