changing dispatcher to pass URL context to handlers