added ability to stop animation immediately