create navigation and layout