add loop and anmation complete callbacks