select a network if only one network available

select a network, security group and keypair, if
only one item present in the available list