add visible and invisible attributes for columns