Added analytics, invalidateOptionsMenu