major refactor so that we no longer use query arguments, to hopefully fix issues with navigation breaking out into Safari on iOS