Actually, Israel did go in with one stated war aim being the disarmament of Hezbollah in accordance with the prior U.N. resolution.
As for the release of the soldiers, the original aim was for their release without condition, meaning no prisoner swap or negotiations as had been done in the past.
In regards to prisoners exchange it is Israel who sets now the conditions not Hizballah.