implementation XHItemView logic