move course points total retrieval to a widget