updated factory for page to reflect url->ending