Set main layout