They had managed to keep open the key Kabul-to-Kandahar highway which dissects Wardak , and prevent the province becoming a launch pad for attacks on the capital , which is barely 20 miles from its border .