Show and Hide condition are not working properly.