start refactor
simplified layout resource.