Show/hide Conditions not working properly