Queries get saved to and parsed from the URL

fixes #204 
need `{}` for multiline `if`.