Show/Hide conditional logic does not seem to be working properly