completed delete page functional
added functional which add links to subpages if they exist