Added setMaxCellWidth and fixed beloning bugs