paging js and style changes