Refactored to the curses rendering engine