update for columns and pagination