fix default mutable dict in layout and fix menu rendering