refactors pages package to be singular