pH Triggered Dye Chemosensor: Design, Synthesis and Optical Switching Properties