fix columnLayout function