Refactoring of Render/Prompt responabilities and the completion menu.