add method for adding module menu and module sub menus as arrays