refactor services to use Ensure class,
fixed javascript bug for page node url after creating a page node