Fixed MORE things on the paginated table function when used on other pages