change hash to query param