add an onDelete method to let the controller be extended more easily
let pageController set the navigation node to inactive, when corrosponding page is deleted