Code

separate updating window from updating layers