fix layout to have correct sizes and controls at bottom