get branches from api and spit into form