add block for layout on portal. add mode for shell.