Add togglePageTree() to backend

New function to show/hide the pageTree (e.g. for AdminTools)