add window resize
fix logger