Introduction

First and foremost, we should discuss the meaning of environmental material; it is a material that can change their chemical or physical behavior by changing the surrounding environment. These polymeric materials are famous for stimuli, responsive, stimuli-responsive, smart, and intelligent [1,2,3,4,5,6]. The scientists have revealed many kinds of responsiveness like thermal, pH, ionic, magnetic, dielectric, and mechanical responsiveness [7,8,9,10,11]. A hydrogel is a hydrophilic 3D network that can absorb a large amount of water [12]. Recently, environmental hydrogel or stimuli-responsive hydrogel has been widely used; they are capable to change their dimension as swell and collapse according to their environmental responsiveness [13]. Thermo-responsive and the pH-responsive hydrogel are the most popular, due to their widely numerous applications [14,15,16,17,18,19,20]. Firstly, a thermo-responsive hydrogel is a kind of environmental hydrogel can change their morphological feature as well as their physical properties as soon the surrounding temperature has been changed [21]. N-isopropylacrylamide polymer hydrogel is the most intensive material was used for that purpose; the phase separation and the lower critical solution temperature of PNIPAAm hydrogel (LCST) have been recorded at 32℃; before this point, the hydrophilic groups have dominated and hydrogel absorbs water and therefore swell. On the other hand, by raising the temperature above the LCST the hydrophobic groups have a great effect and the hydrogel pores release water and start to collapse step by step with raising the temperature [22,23,24]. Several applications of PNIPAAm hydrogel were used in biosensor and bio-actuator [25,26,27,28,29]. A pH-responsive hydrogel is a polyelectrolyte that can change its shape (swelling/shrinking) by changes in the pH of the ambient environment [30,31,32,33]. It was classified into two kinds e.g. anionic and cationic according to the ionization of functional pendant group in the polymer main chain, meanwhile, the ionization is responsible for the formation of electrical charge; meanwhile, the electrostatic repulsion between hydrogel charges and the pH solution has been generated and responsible for the hydrogel deformation [34]. Polycarboxylic acid, like polyacrylic acid PAA, has been used in the formation of the polyanionic hydrogel in an alkaline pH environment, while, the polyamine acted as polycationic hydrogel in acidic pH environment like poly (N, N-dimethylaminoethylmethacrylate) PDEAEMA [35, 36]. The last decades have witnessed many applications of the pH-responsive hydrogel in bio-separation, drug delivery, biosensor, and bio-actautor [33, 37,38,39,40,41,42,43]. Moreover, the formation of dual responsive hydrogel has been done by the copolymerization of different thermo-responsive with pH-responsive. The copolymerization of PNIPAAm with PAA and PDEAEMA has been widely used in the formation of thermos-pH dual responsive hydrogel for the formation of the biocompatible vessel for targeting biomolecules [44,45,46,47,48,49,50]. The additional functional groups in the hydrogel backbone improving the hydrogel properties e.g. grafting and branching that can be used in the bio-separation process [51,52,53,54]. Vanillin plays an avital role in the formation of functional monomers and polymers due to the presence of hydroxyl and aldehyde group; furthermore, it has bioactivity properties e.g. anti-carcinogenic activities, anti-mutagenic, and anti-microbial [55,56,57]. New studies have been developed sustainable and renewable environmental polymers and hydrogel for biodegradable material [58, 59]. In the current and past decade, many scientists have been focused on the preparation of hydrogel thin films. Surface plasmon resonance spectroscopy with optical waveguide spectroscopy (SPR/OW) has been used as a new technique for thickness measurement and determination of LCST of thermos-responsive hydrogel depending on the change of volume degree of swelling or refractive indexes with temperature as well as thermos-pH dual responsive hydrogel [60,61,62,63,64,65]. Eventually, this work describes the preparation of new pH-responsive monomer that further used for the preparation of dual responsive polymers and their photo-cross-linked hydrogel thin film over gold; the study of phase separation of the polymer solution, as well as hydrogel thin film, has our attention.

Experimental

Materials

Acryloyl chloride (99%, Merck, Germany), di-tert-butyldicarbonate ((boc)2O) (98%, Acrōs, Germany) ethanolamine (98%, Fluka, Germany), dimethyl maleic anhydride (98%, Aldrich, Germany), allyl amine (98%, Merck), dimethylamine (98%, Aldrich, Germany), N-isopropylacrylamide (NIPAAm) (97%, Fluke, Germany) was recrystallized from distilled n-hexane (n-hexane stirred overnight in MgSO4 then distilled). Vanillin (99%, Aldrich, Germany), 2, 2′-azobis (isobutyronitrile) (AIBN) (96%, Acrōs, Germany) was recrystallized from methanol, thioxanthone (Acrōs), triethylamine (Merck), dichloromethane (DCM), sodium carbonate (Grüssing), magnesium sulphate (Merck), dioxane, tetrahydrofuran (THF), cyclohexanone (95%, Fluke, Germany) was purified by distillation after drying overnight in magnesium sulphate, diethylether were distilled over potassium hydroxide, and gold (Au, 99.999%, Aldrich Germany). Other chemicals were used as purchased.

Instrumentations

The functional groups for each monomer and polymer were detected by Vertex 70 Fourier transform infrared instrument FT-IR, the samples were dried and milled with KBr and the functional absorption was recorded. For 1H and 13C Bruker, AV 500 spectrometer in CDCl3 or d6 DMSO as solvent was used; it was 500 MHz and 125 MHz for 1H and 13C NMR respectively.

Molecular weights (Mn, Mw) and the dispersity (Ð) were recorded by Size exclusion chromatography (SEC) in tetrahydrofuran (THF) as eluent (containing 0.1 vol% triethylamine) with a flow rate of 0.75 mL/min at 30 ℃. The concentrations of samples were (16 mg/mL), automatic sample injection. PSS-SDV with 5 µm gel Columns was used, and polystyrene was used as standard.

The phase separation and the lower critical solution temperature (Tc) has been determined by UV–Vis spectrometer (Perkin Elmer Lambda 45); it has fixed by metal covet stand that allowed water cycle input and output in heating and cooling by connecting to a thermocouple to adjust the temperature, the temperature rate was taken as 2 °C/min over the range from 5 to 80 ℃; The polymer solution was 1 wt% in deionized water or pH buffer solution.

The glass transition temperature (Tg) of solid polymers was recorded by Perkin Elmer Differential Scanning Calorimeter Pyris 1 in heating and cooling rate of 5 ℃/min.

The gold film has been deposited by physical vapor deposition (PVD) (tectra GmbH). G3P-8 Spin Coat was used to perform polymer thin film. UV Hg-lamp (OSRAM, 100W) fixed with an optical lens and a mirror has been used for photo-cross-linking and formation of the gel. The swelling properties and hydrogel thin films were recorded by Surface plasmon resonance (SPR) added to optical waveguide (OWS), (Restech) is used to perform this process. He–Ne laser beam with a wavelength of 632.8 nm was used to excite SPs in Kretschmann configuration.

Experiments

Synthesis of Monomer

Synthesis of 2-((Dimethylamino)methyl)-4-Formyl-6-Methoxyphenyl Acrylate (2) (DMAMVA)

Step 1: Synthesis of 3-((dimethylamino)methyl)-4-hydroxy-5-methoxy-benzaldehyde (1)

Vanillin (4-hydroxy-3-methoxy benzaldehyde) 16 g (0.1 mol), formaldehyde 16 g (0.53 mol), and 16 g (0.36 mol) dimethylamine all were dissolved in 250 mL ethanol in 500 mL round bottom flask fixed with a water condenser and water trap; they allowed refluxing for 4 h in an oil bath. After two hours the orange precipitate has appeared. The flask was taken off and then allowed to cool at the room temperature and filtered to collect the product. The solvent was also reduced under pressure to collect the rest of the product. Yield 97%, orange solid, m.p. = 140 ℃


1H NMR (500 MHz, CDCl3): δ (ppm) = 2.37 (s, 6 H, i-N(CH3)2), 3.75 (s, 2 H, h-Ar-NCH2), 3.93 (s, 3 H, j-OCH3), 6.39 (br, 1 H, k-OH), 7.15 (d, 1 H, 4J = 1.8 Hz, d-Ar-CH), 7.33 (d, 1 H, 4J = 1.8 Hz, c-Ar-CH), 9.76 (s, 1 H, a-CHO).


13C-NMR (125 MHz, CDCl3): δ (ppm) = 44.32 (2 C, i-NCH3), 56.01 (1 C, h-NCH2), 62.21 (1 C, j-OCH3), 109.97 (1 C, d-Ar-CH), 123.70 (1 C, c-Ar-CH), 125.21 (1 C, g-Ar-C), 128.09 (1 C, b-Ar-C), 148.68 (1 C, f-Ar-C), 154.54 (1 C, e-Ar-C), 190.67 (1 C, a-CHO).


IR (KBr): ν (cm−1) = 3300 (s) NH, OH, 2989 (s) (CH2, CH3), 1744 (s) (C=O), 1646 (s) (C=C), 816–837 (m) (Ar-CH).

Step 2: Synthesis of 2-((dimethylamino)methyl)-4-formyl-6-methoxyphenyl acrylate (2) (DMAMVA).

13.5 g (0.062 mol) 3-((dimethylamino)methyl)-4-hydroxy-5-methoxy-benzaldehyde (1) and 12 g (0.3 mol) sodium hydroxide all were dissolved in 200 mL dry dichloromethane in 500 mL three-neck flask fixed with a balloon of nitrogen gas, dropping funnel and connected to water condenser. The mixture was stirred strongly in an inert atmosphere. After about 30 min they allowed to cool to 0–5 ℃ and 5.6 g (0.062 mol) acryloyl chloride in 25 mL dry CH2CL2 was slowly dropped to the mixture using the dropping funnel, the yellowish suspension started appeared and the mixture was stirred at 5 °C for 1 h, and then allowed to stir at RT for 6 h. the reaction was finished and the precipitate was then filtered and the solvent was evaporated by vacuum rotatory. It has been purified by dissolving in methylene dichloride and washing three times with DI water, one time with 0.1 M sodium bicarbonate, and rewashed with DI water. After drying over magnesium sulfate overnight and filtered, then the solvent was removed to collect the final product. Yield 75%, orange viscous liquid.


1H NMR (500 MHz, CDCl3): δ (ppm) = 2.19 (s, 6 H, i-2CH3), 3.37 (s, 2 H, h-NCH2), 3.84 (s, 3 H, h-OCH3), 6.03 (dd, 2J = 1.1 Hz, 3J = 10.5 Hz,1 H, m1 = CH2), 6.34 (dd, 3J = 10.5 Hz, 3J = 17.3 Hz, 1 H, l = CH), 6.64 (dd, 2J = 1.1 Hz, 3J = 17.3 Hz, m2 = CH2), 7.37 (d, 1 H, 4J = 1.7 Hz, d-Ar-CH, 7.34 (d, 1 H, 4J = 1.7 Hz, c-Ar-CH), 9.91 (s,1 H, a-CHO).


13C-NMR (125 MHz, CDCl3): δ (ppm) = 45.42 (2 C, i-2CH3), 55.72 (1 C, h-NCH2), 62.41 (1 C, j-OCH3), 108.75 (1 C, d-Ar-CH), 122.37 (1 C, c-Ar-CH), 126.25 (1 C, l = CH), 127.30 (1 C, g-Ar-C), 132.22 (1 C, 5-Ar-C), 134.39 (1 C, m = CH2), 143.50 (1 C, b-Ar-C), 152.51 (1 C, e-Ar-C), 162.81 (1 C, k-COO), 191.64 (1 C, a-CHO).


IR (KBr): ν (cm−1) = 2939(s) (CH2, CH3), 1718 (s) (C=O), 1665 (s) (C=O), 1615(s) (C=C), 874–826 (m) (Ar-CH).

Synthesis of Dimethylmaleimidoacrylate (DMIA) Photo-Cross-Linker

Step 1: Synthesis of dimethylmaleimido ethanol or 1-(2-hydroxyethyl)-3,4-dimethyl-1H-pyrrole-2,5-dione (3).

In a 500 ml round bottom flask fitted with a water trap, 12.623 g (0.206 mol) of 2-aminoethaol was added to the stirred solution of 12.611 g (0.1 mol) dimethylmaleic anhydride in 300 mL toluene. The mixture was refluxed at about 135 °C in an oil bath for 4 h. The solution was cooled to RT. The solvent was evaporated under reduced pressure. The product was purified by TLC using 1:1 n-hexane: ethyl acetate as eluent and silica (Rf = 0.32), 72% (lit.: 74%), colorless, crystals.


1H NMR (500 MHz, CDCl3): δ (ppm) = 1.97 (s, 6H, a-CH3), 2.20 (br.; 1H, f-OH), 3.70 (t, 2H, 3J = 5.85 Hz, d-CH2), 3.77 (m, 2H, 3J = 4.89 f-CH2).


13C-NMR (125 MHz, CDCl3): δ (ppm) = 8.70 (2C, a-CH3), 40.91 (1C, d-CH2), 61.38 (1C, e-CH2), 137.42 (2C, b-C=C), 172.82 (2C, c-C=O).


IR (KBr): ν (cm−1): 3500 (m) (OH), 3080–2945 (s) (CH2, CH3), 1765 (C=O), 1705(s) (C=C), 1005 (s) (OH).

Step 2: Synthesis dimethylmaleimidoacrylate (DMIA) (4) [66].

In two neck flask fitted with nitrogen balloon. 5.57 g (0.032 mol) of (3) in 100 mL dry CH2Cl2 was stirred and, 6.70 g (0.066 mol) of TEA was added. The mixture was allowed to cool to 0–5 ℃ in an ice bath. 3.33 g (0.0368 mol) of acryloyl chloride was added dropwise. The yellowish suspension was stirred at 5 ℃ for 1 h and then allowed to stir at RT overnight. The suspension was filtered and, the filtrate was evaporated under reduced pressure to remove the solvent. The product was purified by TLC in 1:2 n-hexane to ethyl acetate Rf = 0.45, 97%. (lit.: 98%) [66], colorless viscous liquid.


1H NMR (500 MHz, CDCl3): δ(ppm) = 1.95 (s, 6H, a-CH3), 3.78 (t, 2H, 3J = 5.45 Hz, d-CH2), 4.26 (t, 2H, 3J = 5.33 Hz, e-CH2), 5.82 (dd, 2J = 1.4 Hz, 3J = 10.3 Hz, h1-CH), 6.07(dd, 3J = 10.4 Hz, 3J = 17.35 Hz, 1 H, g-CH), 6.37 (dd, 2J = 1.4 Hz, 3J = 17.3 Hz, h2-CH).


13C-NMR (125 MHz, CDCl3): δ (ppm) = 8.66 (2C, a-CH3), 36.81 (1C, d-CH2), 61.79 (1C, e-CH2), 128.01 (1C, g-CH), 131.28 (1C, h-CH2), 137.36 (2C, b-C=C), 165.76 (1C, f-C=O), 172.45 (2C, c-C=O).


IR (KBr): ν (cm−1): 3080–2945 (s) (CH2, CH3), 1670–1730 (s) (C=O), 1640 (s) (C=C).

Synthesis of Adhesion Promotor

Preparation of Thioacetic Acid 3-(3,4-Dimethyl-2,5-Dioxo-2,5-Dihydro-pyrrol-yl)-propyl Ester (DMITAc) Adhesion Promoter

The DMITAc was prepared according to the literature [67].

Step 1: Synthesis of 1-allyl-3,4-dimethyl-pyrrol-2,5-dione (5).

A mixture of 5.71 g (0.1 mol) of allylamine and 6.305 g (0.05 mol) of dimethyl maleic anhydride was dissolved in 200 mL toluene in 250 mL round-bottomed flask fitted with a water trap to collect water. It has been refluxed under stirring in an oil bath at about 130 ℃ for 4 h. The reaction has been finished and 1.5 mL of water was collected in the water trap. After cooling at room temperature the mixture was filtered and then the solvent was removed under reduced pressure. The crude product was purified by TLC by dissolving in 4:1 n-hexane to ethyl acetate as eluent and using silica gel as stationary phase, Rf = 0.5, white, slurrish solid, 70% (lit.: 75%) [67].

1H NMR (500 MHz, CDCl3): δ(ppm) = 1.96 (s, 6H, a-2CH3), 4.08 (tt, 2H, 2J = 1.5 Hz, 3J = 5.6 Hz, d-CH2), 5.14 (ddd, 1H, 2J = 1.2 Hz, 3J = 27.1 Hz, 3J = 10.2 Hz, 3J = 17.1 Hz, 4J = 1.1 Hz, g 1,2-CH)), 5.80 (ddd, 1H, 3J = 27.3, 3J = 17.2 Hz, 3J = 6.97 Hz, 3J = 5.7 Hz, f-CH).

13C-NMR (125 MHz, CDCl3): δ(ppm) = 8.64 (2C, a-CH3), 39.97 (1C, d-CH2), 117.25 (1C, f-CH2), 132.04 (1C, b-CH), 137.32 (2C, g-C=C), 171.73 (1C, c-C=O).

IR (KBr): ν (cm−1): 2960 (s) (CH-Aliphatic), 1720–1740 (s) (C=C), (C=O).

Step 2: Synthesis of thioacetic acid 3-(3, 4-dimethyl-2,5-dioxo-2,5-dihydro-pyrrol-yl)-propyl ester (DMITAc) (6).

In 50 mL round bottom flask with reflux condenser, 3.454 g (0.045 mol) of thioacetic acid was added to stir solution of 5 g (0.03 mol) 1-allyl-3,4-dimethyl-pyrrol-2,5-dione (5), and 0.294 g (1.79 mmol) AIBN in 30 mL CHCl3. The mixture was refluxed at 80 ℃ for 5 h in an oil bath. The reaction was finished and the mixture was allowed to cool at room temperature. 50 mL of 1 M sodium bicarbonate was added. The aqueous solution was extracted two times using 60 mL diethyl ether, followed by the addition of sodium chloride till saturation, dried with MgSO4 overnight. The product was purified by TLC using 4:1 n-hexane to ethyl acetate as eluent and silica gel as stationary phase Rf = 0.32, followed by vacuum distillation for extra purification. Colorless viscous liquid, 88% (lit.: 84%) [67].

1H NMR (500 MHz, CDCl3): δ (ppm) = 1.83 (p, 2H, 3J = 6.9, f-CH2), 1.93 (s, 6H, a-CH3), 2.28 (s, 3H, i-CH3)), 2.79 (t, 2H, 3J = 7.3, g-CH), 3.50(t, 2H, 3J = 6.9, d-CH).

13C-NMR (125 MHz, CDCl3): δ (ppm) = 8.6 (2C, a-CH3), 26.28 (1C, f-CH2), 28.70 (1C, g-CH2), 30.51, (1C, i-CH3), 36.72 (1C, d-CH2), 137.17 (2C, b-C=C), 172.07 (1C, c-C=O), 195.33 (1C, h-C=O).

IR (KBr): ν (cm−1): 2962 (s) (CH-Aliphatic), 1741–1723 (s) (3-C=O), (2-C=C), 1705 (7-C=O).

Synthesis of Photo-Cross-Liked Terpolymer

In 100 mL round bottom flask closed with a rubber stopper. A mixture of 0.296 g 5 mol% of dimethylmaleimidoacrylate, photo-cross-linker (DMIA) (4) was added to 0.679, 0.887 and 1.183 g, 10, 15 and 20 mol% respectively of 2-((ditert-butylamino)methyl)-4-formyl-6-methoxyphenyl acrylate (DMAMVA) (3) and 3.00 g (0.0265 mol) N-isopropylacrylamide (NIPAAm) and 2,2′-azobis(isobutyronitrile) (AIBN) were dissolved in 60 mL pure 1,4-dioxane. The mixture was purged in nitrogen for 20 min. and then heated with stirring in an oil bath at 70–75 ℃ for 8 h. The polymerization was terminated by cooling firstly at room temperature and then freeze overnight in the refrigerator. The polymeric material has been extracted by precipitation in diethyl ether at – 40 ℃. Further, it was dissolved in THF, and re-precipitated in diethyl ether to remove all unreacted monomers and impurities.

1H NMR (500 MHz, CDCl3): δ(ppm) = 0.92–1.28(m, 6H, m-CH3), 1.35–1.70(m, 6H, h, f-CH2), 1.72–1.83 (m, 6H, a-CH3), 1.83–2.27 (m, 3H, e,g,i-CH), 2.35–2.98 (m, 4H, b,c-CH2), 3.56–3.70 (m, 3H, p-CH3), 3.74–4.13(m, 1H, l-CH), 6.93–7.84 (m, 3H, k-NH, n–CH-Ar), 7.62–7.82 (m, 1H, 3-CH-Ar.), 9.92–10.03 (m, 1H, o-CHO).

IR (KBr): ν (cm-1): 3200–3500 (s) (NH, OH), 3095–2984(s) (CH-Aliphatic), 1763(s) (C=O, carbonyl), 1713(s) (C=O, aldehyde), 1607(s) (C=C), 1103 (s) (O-CH3), 805–857 (m) (CH-Aromatic).

The Formation of Hydrogel Thin Films has been Achieved in Five Steps Using Four Techniques and Instruments

  1. 1.

    Gold was deposited over LaSFN9 glass slides with a 45 nm gold film using physical vapour deposition (PVD) (tectra GmbH). High vacuum coating system for applying thin layers the coating chamber of the system is made of stainless steel and has the dimensions 300 mm, height 400 mm. The device offers the options for thermal and/or electron beam evaporation of the film-forming substances. The targets can be heated or cooled to improve the layer properties. The growth of the layers is recorded in situ using a quartz microbalance.

  2. 2.

    Au- substrate slide was immersed 24 h in DMITAc to form adhesion promoter about 5 nm thin film over Au.

  3. 3.

    The polymer was dissolved in cyclohexanone in 7.5 wt% and G3P-8 Spin Coat was used to perform polymer thin film. The conditions were 250 rpm for 30 s and 2000 rpm for 140 s.

  4. 4.

    UV Hg-lamp (OSRAM, 100 W) fixed with an optical lens and a mirror has been used for photo-cross-linking and formation of the gel.

  5. 5.

    The swelling properties and hydrogel thin films were recorded by Surface plasmon resonance (SPR) added to optical waveguide (OWS), (Restech) is used to perform this process. He–Ne laser beam with a wavelength of 632.8 nm was used to excite SPs in Kretschmann configuration. The swelling properties of hydrogel with the response to temperature and pH were measured as follows; 3–4 mL of distilled water or pH solution has been handle injected to the SPR cell (SPR cell consists of a sample holder, LaSFN9 glass with a gold coating, a prism. The temperature was controlled by a Peltier element in addition to a thermocouple of 0.1 ℃ accuracy has been also used to measure the temperature inside the cell.

Result Analysis and Discussion

Synthesis of Monomer, Photo-Cross-Linker, Adhesion Promotor and Polymers

Syntheses of new monomer, photo-cross-linker, and adhesion promotor have been performed to serve our eventual goal for preparation environmental functional photo-cross-linked polymers and hydrogel thin films as well. Firstly, the new monomer based on vanillin was synthesized to act as a pH-responsive monomer; it was synthesized in two steps reaction. The first step was described in Scheme 1 as the reaction of vanillin with both formaldehyde and dimethylamine in basic or in a neutral condition. The reaction proceeded according to Mannich reaction mechanism. The product was 3-((dimethylamino)methyl)-4-hydroxy-5-methoxy-benzaldehyde (1) and demonstrated logic results with the chemical structure; the 1H NMR and 13C in Fig. 1 showed the presence of dimethyl group –(CH3)2 at δ = 2.73 ppm and methylene –CH2N– at δ = 3.75 ppm that corresponding to 44.5 and 56.01 ppm 13C NMR. The next step for the preparation of the final product was achieved by the reaction of compound (1) with the acryloyl chloride in strong basic condition and in an inert atmosphere as shown in Scheme 1. The chemical structure was elucidated by the 1H NMR and 13C in Fig. 2; the vinyl group has been appeared in the region from 6.03 to 6.64 ppm and 126.25 and 134.39 ppm for 13C, the stability of aldehyde group has also been detected at 9.91 and 191.64 ppm for each 1H and 13C. For compounds 1 and 2, the FTIR has also been used to investigate the presence of functional groups, and it was successful to detect the aldehyde group -CHO as a stretched peak at 1718 cm−1 in addition to vinyl group C=C at 1665 cm−1.

Scheme 1
scheme 1

Synthesis of DMAMVA monomer, photo-cross-linker, adhesion promotor, and polymers

Fig. 1
figure 1

1H NMR spectrum (CDCl3) of 3-((dimethylamino)methyl)-4-hydroxy-5-methoxy-benzaldehyde (DMAMV) (1)

Fig. 2
figure 2

1H NMR spectrum (CDCl3) of 2-((dimethylamino)methyl)-4-formyl-6-methoxyphenyl acrylate (DMAMVA) (2)

The acrylate photo-cross-linker (DMIA) (4) was synthesized in a two-step process as outlined in Scheme 1. The first step in the synthesis of DMIA involved a condensation reaction between dimethyl maleic anhydride and ethanolamine with the subsequent removal of water as a by-product. The resulting colorless crystalline solid (3) was reacted with acryloyl chloride in the presence of triethylamine as base catalysis and dry dichloromethane and finally, lead to the formation of (4) the product in high yield (97%). Figures 3 and 4 show the 1H NMR of compounds 3, 4. The adhesion promoter for gold was synthesized for the covalent attachment of a thin hydrogel layer to the substrates. The active group on the surface is responsible for the chemisorption on the substrate. The molecular surface interactions are covalent Au–S bonds. The adhesion promoter for gold (DMITAc) (6) was synthesized in a two-step process as shown in Scheme 1. The first step involved the reaction of allylamine with dimethyl maleic anhydride and the removal of water as a by-product. In the second step, compound (5) was reacted with thioacetic acid in the presence of AIBN to yield the product (6). It was investigated by 1H NMR and 13C NMR and FTIR as shown in Figs. 5, 6, and 7.

Fig. 3
figure 3

1H NMR spectrum (CDCl3) of 1-(2-hydroxyethyl)-3,4-dimethyl-1H-pyrrole-2,5-dione (3)

Fig. 4
figure 4

1H NMR spectrum (CDCl3) of dimethylmaleimidoacrylate (DMIA) (4)

Fig. 5
figure 5

1H NMR spectrum (CDCl3) of 1-allyl-3,4-dimethyl-pyrrol-2,5-dione (5)

Fig. 6
figure 6

1H NMR spectrum (CDCl3) of thioacetic acid 3-(3, 4-dimethyl-2,5-dioxo-2,5-dihydro-pyrrol-yl)-propyl ester (DMITAc) (6)

Fig. 7
figure 7

1H NMR spectra (CDCl3) of poly (NIPAAm-co-DMIA-co-DMAMVA)

Here, we synthesized a series of photo-cross-linked functional polymers in different mole ratios DMAMVA. Random free radical polymerization was used to synthesize polymers 7a–c. The 1HNMR was performed to estimate the actual amount of DMIA and DMAMVA in the polymer chain. Three kinds of protons integrations the integration (2CH3) of DMIA at 1.83–2.27 ppm, NIPAAm (CH) at 3.74–4.13 ppm in a comparison with the integration of (2H) of (Ar-H) at 6.93–7.84 ppm; it was also observed the disappearance of vinyl monomers groups in the 1HNMR analysis proofing successful polymerization as shown in Fig. 7. All calculations were in a logic case with the feeding calculation Table 1. Furthermore, the FTIR of polymer recorded the presence of ester carbonyl group C=O at 1763 cm−1 and aldehyde carbonyl at 1713 cm−1 as represented in Fig. 8.

Table 1 Yield, composition, weight average molecular weight, polydisperisity, glass temperature and lower critical solution temperature of P(NIPAAm-Co- DMIA-Co-DMAMVA)
Fig. 8
figure 8

FTIR of Monomer, photo-cross-linker, adhesion promotor and polymers

Miscellaneous Properties of Polymers

Gel permeation chromatography (GPC) has been used to record the molecular weights (weight average molecular weight, number average molecular weight, and viscosity average molecular weight) as well as the dispersity of polymers 7a–c. Polymers were dissolved in tetrahydrofuran (THF) and automated running. Figure 9 showed the GPC spectrum of polymer samples; it demonstrated an indirect relation between the molecular weight and dispersity with the molar concentration of vanillin acrylate monomer (DMAMVA) that might be attributed to the effect of the steric hindrances of monomers. Moreover, the spectrum for all polymers appeared as one peak with one height demonstrated the disappearance of low molecular weights molecules such as monomers and some other impurities. All data were summarized in Table 1.

Fig. 9
figure 9

GPC of polymers 07a–c

The thermal properties of polymeric material have the greatest importance, which expresses the direction of material application. Differential scanning calorimeter (DSC) was used to measure the glass transition temperature (Tg) of photo-cross-linked polymers 7a–c with a heating rate of 5℃/min, under a nitrogen atmosphere. The DSC spectra (diffractogram) as shown in Fig. 10; the recorded data exhibited direct relation between the molar concentrations of vanillin acrylate monomer (DMAMVA) and the glass temperatures Tgs values. It showed 144.65, 147.46, and 152.85 ℃ for 07–10, 07–15, and 07–20 respectively. The higher glass temperature values of polymers than homo-PNIPAAm interpreted to the presence of tertiary amine group with aldehyde group that increased the hydrophilic characters of polymers and hence increased the glassy state and glass transition temperature as well. All recorded data were summarized in Table 1.

Fig. 10
figure 10

DSC diffractogram for glass transition temperatures of polymers 07a–c

The Phase Separation and the Lower Critical Solution Temperature

The environmental or the smart behavior of the polymer solution to thermo-pH has been investigated and discussed in detail. The UV–VIS spectroscopy was used to measure the turbidity of polymer solution in deionized water, pH3, and pH12 as neutral, acidic, and basic media. The transmittance was recorded per 2 ℃ temperature scale. The relation of transmittance to temperature was drawn and the transition temperature was determined as the intersect point further, the temperature at 50% transmittance was known as the cloud point. The observations were pointed for three cases as follow:

Firstly, the transition temperature and the cloud point were investigated in the deionized water; the Tcs and Cps values demonstrated 23, 24.5, and 32.4 ℃ corresponding to 25.5, 27, and 35.5 ℃ for 07–10, 07–15 and 07–20 respectively. An increase in the lower critical solution temperature and the cloud point as well by increasing the molar concentration of DMAMVA content in the polymer chain due to an increase in the hydrophilicity of polymer solution and increasing isotropic state rather than an anisotropic state. Secondly, the investigation has been done in pH3 referring to acidic media which effect dramatically in the polymeric solution and increased the ionization in the polymer solution. The protonation of the tertiary amine group has affected directly the lower critical solution temperature Tc and the cloud point Cp, it was observed much higher values of Tcs and Cps 49.2 and 63.3 ℃ correspondings to 50.4 and 64 ℃ for polymers 07–10 and 07–15 respectively. For polymer 07–20 with 20 mol% of DMAMVA, we could not record any actual change in the transmittance by raising the temperature until 80 ℃, this fact can be interpreted as the higher Tc value than the maximum temperature was used by instrument. The last measurements of the lower solution temperature and cloud points were done in pH12. The turbidity has appeared at lower temperatures not only than measured in deionized water and pH3 but also more than measured for pure PNIPAAm in DI water. It demonstrated Tcs and Cps at 22.6, 22 and 17.8 ℃ and 24.6, 23, and 20.2 for 07–10, 07–15, and 07–20, these attributed to the deactivation of hydrophilic groups and domination of hydrophobic one (Figs. 11, 12, 13).

Fig. 11
figure 11

The change in turbidity with temperature for LCST of P (NIPAAm-Co-DMAMVA-Co-DMIA) by UV–Vis spectroscopy for 1 wt% of polymer solution in deionized water

Fig. 12
figure 12

The change in turbidity with temperature for LCST of P (NIPAAm-Co-DMAMVA-Co-DMIA) by UV–Vis spectroscopy for 1 wt% of polymer solution in pH3

Fig. 13
figure 13

The change in turbidity with temperature for LCST of P (NIPAAm-Co-DMAMVA-Co-DMIA) by UV–Vis spectroscopy for 1 wt% of polymer solution in pH12

Hydrogel Thin Films and SPR/OW for Swelling Properties and Transition Temperature

Previously, in the experimental part, we discussed the steps used for the formation of hydrogel thin films; these involved the deposition of the gold layer over LaSFN9 glass followed by immersing in DMITAc adhesion to form (LaSFN9 + Au + DMITAc adhesion). A solution of 7.5 wt% polymer 07–20 in distilled cyclohexanone was spin-coated and exposed to UV lamp for cross-linking. The thickness for each step was measured by SPR-OW spectroscopy according to Kretschmann configuration. The instrument allowed pathing Ne/He laser beam at 633 nm and penetrates the sample fixed with the prism. The incidence angle (θ) was varied with a goniometer and then pathed through a photodiode for collection. The reflected intensity versus angle was measured, and then Fresnel calculations were used to demonstrate the system of multi-layers [60,61,62,63,64,65]. Gold thin film was measured producing 46 nm thickness, and then with adhesion promoter was 52.41 nm as shown in Fig. 14. The dry film thickness was measured and calculated by Fresnel calculations resulted in 217.57 nm and refractive index 1.476 as clear in Table 2 and Fig. 15.

Fig. 14
figure 14

SPR scan of photo-cross-liked hydrogel layer RI (θ) as experimentally (black line) and simulation (red line) and Fresnel calculations in the model box for the (Au + adhesion promotor) (Color figure online)

Table 2 The Fresnel calculations of dry hydrogel layers system for thickness, dielectric and refractive index
Fig. 15
figure 15

SPR scan of photo-cross-liked hydrogel layer RI (θ) as experimentally (black line) and simulation (red line) and Fresnel calculations in the model box for the dry film thickness (07–20) (Color figure online)

The pH-responsive properties of photo-cross-linked polymer hydrogel 07–20 were investigated as a function in the volume degree of swelling (1/χp) and refractive index (n). Figure 16 illustrated the swelling as a change in RI (θ) with pH-dependent; it showed the highest plasmon minimum at ~ 64°. Fresnel simulations and calculations of volume degree of swelling and refractive index as a function of pH at 20 ℃ was done and demonstrated the highest the volume degree of swelling (1/χp) and refractive index (n) at pH3 as the strongest acidic dielectric media that attributed to the high protonation and ionization of hydrogel, as shown in Fig. 17.

Fig. 16
figure 16

SPR scan of photo-cross-linked hydrogel layer RI (θ) with pH variations of bilayer (07–20)

Fig. 17
figure 17

The volume degree of swelling and refractive index vs. pH of photo-cross-linked hydrogel layer for (07–20)

The lower critical solution temperature and the phase separation of the photo-cross-linked polymer hydrogel 07–20 were determined as a function in pH dielectric media. The first running has been done in deionized water; the reflection intensity RI (θ) as a change in temperature was scanned and demonstrated the highest value of reflected angle at the dry state, while, the lowest value was observed at the top of swelling state as shown in Figs. 18 and 19. The volume degree of swelling and refractive index versus temperature was used to determine the Tc of the hydrogel at the onset point exhibited at 22.3 ℃. With the same method, the lower critical solution temperature was determined in pH12 and pH3; in the strongest basic dielectric media pH12, it showed Tc at 19.4 ℃ Fig. 20, while it did not respond at pH3 attributed to the expected transition temperature is higher than the maximum temperature used by the instrument, Fig. 21.

Fig. 18
figure 18

SPR scan of photo-cross-linked hydrogel layer RI (θ) with pH variations of bilayer (07–20)

Fig. 19
figure 19

The volume degree of swelling and refractive index vs. temperature of photo-cross-linked hydrogel layer in DI H2O

Fig. 20
figure 20

The volume degree of swelling and refractive index vs. temperature of photo-cross-linked hydrogel layer in pH12

Fig. 21
figure 21

The volume degree of swelling and refractive index vs. temperature of photo-cross-linked hydrogel layer in pH3

Conclusion

The present study emphasizes the preparation of dually thermos-pH photo-cross-linked polymers based on N-isopropylacrylamide, and the new monomer has synthesized from vanillin and acted as a pH-responsive monomer in the polymer chains. Three different photo-cross-linker polymers with the different molar concentrations of DMAMVA have been fabricated; they exhibited an effective in the general characterizations of polymers. They demonstrated different lower critical solution temperatures at different ambient environments, in DI water, polymer solution showed lower values of Tc that increased by increasing the concentration of DMAMVA, the same results have been demonstrated for Tc at pH12. The highest values of Tc were observed at pH3 as the ionization of the amino group and the effect of electrostatic attraction between the solution and polymer chain was activated. The next step was focused on the formation of dual-responsive hydrogel thin films as layer by layer. The hydrogel layer thin films have been successfully built, and the thickness was determined by the SPR-OW technique according to the simulation of Kretschmann configuration. The volume degrees of swelling and refractive indexes have been calculated and they were used in the determination of phase separation temperature that showed closed value to the polymer solution. In the nearest future, the photo-cross-linked polymer will be used for the formation of bilayer hydrogel thin films as responsive and non-responsive for biocompatible vessel technology.