Who replaced Derby after his resignation