Fix for #397 Only update when window is created. 
Fix for #397
Only update when window is created. 

B3Partners/flamingo,flamingo-geocms/flamingo,B3Partners/flamingo,mvdstruijk/flamingo,flamingo-geocms/flamingo,B3Partners/flamingo,B3Partners/flamingo,flamingo-geocms/flamingo,flamingo-geocms/flamingo,mvdstruijk/flamingo,mvdstruijk/flamingo,mvdstruijk/flamingo