created main layout