Civil War

The Civil War was a war to end slavery, but in fact the initial war goal of the union was to force the secessionist states back even with slavery intact. Explain why the the north failed initially to advocate the destruction of slavery, how and why this changed? Why and how the civil war became for the the north to abolish slavery?