moved menu module logic from pages to the menu module, where when a page is deleted the module link is deleted, too.