events that led to the civil war