My Show/Hide condition is not working properly