Add louse in/out managment
Fix delayed window resize