Updated for faster select refresh.
Fixed remove bug in tree view.