throw error if no mode
fix cellsByRow container size
set options in layout();