fixing pagination after updateTable change