create codeLayout and modal keys