Photochromic function of reactive gel catalysts in smart windows