store distinct_id in state instead of URL params