Refactor Grid attributes to numberLines Columns and grid attributes