fixing locations page logic to avoid gaps in address lines