Work affects traffic at Gilbert, Main in Danville