Fix demo layout, init array attributes