Improved results panel layout and associated code