support for routing URL to a given state