A quantum topological transistor in bilayer graphene