Added logic to ShowChooseDialog & ShowTexDialog methods to include a
Cancel button based on a new arg to indicate cancelable state.

Change-Id: Iff57b61e3f821b8e2d9d7d69e20e3fd5f8d4f241