change card table layout