completed TextStatsVC with a function to update the UI