adding layout to pages