Background clicks on expanded pane collapse the pane