replace onPostInit with onFocus to do tree sorting