Designing Chemical- And Light-Activated Protein Switches For Regulating Peptide Functions