optimization
paint selected tree item red when page is first loaded
store entry content externally and load only when needed