Remember last selected item in tree