Preparation and application of responsive materials