collapse branch on second click