move install routine to function
rename variable holding the items to be installed
add silent mode

silent mode will not open whiptail but install everything