Custom pagination component implementation