Text this: Smart polymers for biomedical application and environmental protection