updated script works with multiple instances but hide/ show affecting other options