Rewrite of ConsoleWidget

Rewrite of ConsoleWidget