getting parttype from UI