changed height adjustment based on labels