select branch and resize branches when code cells inside a branch are executed