Changed animation method and added startAnimation