main layout defined