Control of cell polarity by internal programs and external signals in yeast