fixed CLI with view and layout