Dynamic control of light in on-chip microresonators