enabled animation to be turned on and off