fixing wpf macro to handle display of items