adding type-hints to reduce reflection
fixing animate button animating only every two seconds