linked up main layout