changed picker initialization; added template