fix move view when expand branch