Implemented pagination component