Better space management in panel.html