made an object hierarchy for color rect ui elements