 When Gough Whitlam led the Labor Party to victory in 1972, he was made Minister for Social Security.He replaced Jim Cairns as Treasurer in 1975, but served for only five months before the government was dismissed.In early 1977, Hayden challenged Whitlam for the party leadership and was defeated by just two votes.