added pagination component and modified table component