updated main layout