Reworked css for header and panel spacing