set height of controls automatically