refactor page resources controllers