refactor console ui