Web: use variable name mode instead of state_choice

Also fixes bug in pagination when using QA mode on tile list