layout in function window improved