updating loading animation; adjusting directive to work properly.