added some control for animations