A script to manage show/hide logic for elements