refactor indexItemByItemId
refactor createStyleTarget, addStyles, removeStyles