refactor forms for page resources