add sublink count to item, add some styling for item types