Hide page condition is not working