move drawing functions into PlanetsWidget.