close #257 added flag to handle the animation checkbox behaviour correctly.