destroyed pagination functionality