updated control table to work with new paginate