moved away from core-toolbar in the card layout and created my own header panel to reduce the height