fixing layout bugs created by div name changes