Clean layoutmenu code