added simple pagination
adding pagination component and fixes for pagination