he went to the house of representatives and was elected president