added a script to handle animations