Smart nano structured coating