can now easily control tree expand state