added basic implementation for column/row layout