how could secret ballots and direct primaries increase the influence of the masses in government in the late nineteenth century