fixing layout of main controls