Adding method to hide/show the master pane.