adding pagination-bar code