How can I fix my SHOW/HIDE condition?