Don't confirm if there's no changes when switching to edit source mode through the page options menu

Also use a simpler way to discard changes

Bug: 68229
Change-Id: I1efc40f14fca0f743df699a4f3aadd4ba3a249e2