Move openDialog function to PanelUtils