tweak header to fit all flexbox cases