Nanoscale Optical Display and Sensing Based on the Modification of Fano Lineshape