some refactoring
now passing input and output to display results
displaying wrong input
encapsulating the widget
encapsulating basic conf