misc fixes for @media