Mode transitions in helicon discharges