opening preferences pane on second button click