Added function to maximize and restore pane height