assing resource id for ui