Added toggleAutoRefresh