switch from hash() to query param