Gladstone resigned after what was defeted