Adding checkbox to enable/disable auto-refresh