finish basic pagination component