refactor console-view