fixed animation jump, made function for checking button text size