init main layout