add animation synchronization