creating menu structure and layouts