main layout before cache