adjust main layout;