modify main layout.