corrected pager to show top or botton and css