implemented base layout