changed media query to device