Make more use of panels for controlling input layout.