change animation loop
added controls