further adjust main layout