fixed animation transitions, now smooth