Resonant dielectric metasurfaces: active tuning and nonlinear effects