tree expanding and collapse done