Show/Hide page condition not working