What is the efficient way to use conditions when showing and hiding fields