fixed issue with current learning session closing
stop animation if page not current