Add 'Toggle Tree Side' menu item

This adds a new menu item called 'Toggle Tree Side', that toggles the tree view side between right and left