implemented base layout with menu