Work on the layout for both panels