added a cookie to keep track of device size so the right header is passed to the user. Keeps the header from flashing on each page