issue-#13

correct issue with hide and show control logic.