more concise debug ouput
refresh and set icons, track modified state