toggle state flag for tracking enabled