Adds filepath text and sets icons for the different kinds of items.