finally able to get dynamic table columns to work