updated logic for /columns update