How to have "hide" condition override previous "show" condition