code fixes and added continuous animation