fixed the branches.js to not duplicate prompts