dynamically initilizing AND/OR toggle