Spatiotemporal control of endocytosis