measures layout changes