Working main layout