Revised SGDocument API
Got the side pane toggle working