registerComponent method