Adding caption visibility using ClassToggle