refactored text widget with more understandable variable names