Used reflection to set component properties