disable realtime button and set animation to loop at the end