better handling of media queries for ipad