added media query for xs and fixed the media switch logic for the tool and side bars