Reset transition flag if show is called while on the same page or if the page cannot be found.
Formatting.