added ability to cancel animations