Control of cell identity in pancreas development and regeneration