add generic callback for animations