improved adding pages layout on the resource form