working model with media query