Added last state media query