main layout finished