Refactoring Output widget.