Updated IsOn logic to use more intelligent Uri comparison logic.