added pages and media mode
small media query tweak