pagination in show
corrected pagination