Dynamic Control of Nanocavities with Tunable Metal Oxides