Smart polymer coatings for plastic substrates