use widget struct in cover and progressbar