update table based on media query