fix dialog rpc window management and add settings page