adding back in window resize
optimizing animations