expand new session and open session branches
fix the bug that branches were not initially expanded.