change generic form to resource form