add dispatch of hash and query
decode URL