update working version with ResourceGroup selection