Changed boolean variable to shouldHideContinueButton