feat(newpage): Some refactorings for the server side